<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>存储信息详情</title>
    <link rel="stylesheet" href="../../static/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/main.css">
    <link rel="stylesheet" href="../../static/css/public.css">
    <script src="../../static/js/jquery-3.4.1.min.js"></script>
    <script src="../../static/layui/layui.js"></script>
</head>
<body>

<table class="layui-hide" id="demo"></table>

<script>
    var store = JSON.parse(localStorage.getItem('searchstore'));
    layui.use('element', function(){
        var element = layui.element;

        //…
    });

    layui.use(['form', 'layedit', 'laydate','table'], function() {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate
            , table = layui.table
        table.render({
            elem: '#demo'
            , cellMinWidth: 120
            , title: '存储信息表'
            ,cols: [ [ //表头
                {type: 'checkbox', fixed: 'left'}
                ,{field: 'warehouseId', title: '仓库编号', width:'20%', sort: true}
                ,{field: 'warehouseName', title: '仓库名', width:'20%',sort: true}
                ,{field: 'warehousePhone', title: '仓库联系电话', width:'20%', sort: true}
                ,{field: 'warehouseAddress', title: '仓库地址', width:'20%', sort: true}
                ,{fixed: 'right', width: '16%', align:'center', toolbar: '#barDemo'}
            ] ]
            , data: store.data
        });

    });
</script>


</body>
</html>